<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>GameEngine: Gameloop Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GameEngine
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_gameloop.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="class_gameloop-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Gameloop Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a18f9a1686565e206b40718ed787aeb97"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a18f9a1686565e206b40718ed787aeb97">Gameloop</a> ()</td></tr>
<tr class="separator:a18f9a1686565e206b40718ed787aeb97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0aff9533f00b23557a7d7b348b95007"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#ac0aff9533f00b23557a7d7b348b95007">~Gameloop</a> ()</td></tr>
<tr class="separator:ac0aff9533f00b23557a7d7b348b95007"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf57f38f17343877c7b4bd6a75ef3a9f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#aaf57f38f17343877c7b4bd6a75ef3a9f">gameLoop</a> ()</td></tr>
<tr class="separator:aaf57f38f17343877c7b4bd6a75ef3a9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a0004bb5d123525c760e16535c424d50b"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a0004bb5d123525c760e16535c424d50b">getTime</a> ()</td></tr>
<tr class="separator:a0004bb5d123525c760e16535c424d50b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91d555830ff70f604077ec1600bf9a90"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a91d555830ff70f604077ec1600bf9a90">stopLoop</a> ()</td></tr>
<tr class="separator:a91d555830ff70f604077ec1600bf9a90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a363757057c85482cecc4f72da4084dba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a363757057c85482cecc4f72da4084dba">update</a> ()</td></tr>
<tr class="separator:a363757057c85482cecc4f72da4084dba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f65b70ec85e73fb4467e7eb34bc4849"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a6f65b70ec85e73fb4467e7eb34bc4849">render</a> (float interpolation)</td></tr>
<tr class="separator:a6f65b70ec85e73fb4467e7eb34bc4849"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fc46b06b36562f628e0d8f051c8b596"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a1fc46b06b36562f628e0d8f051c8b596">handleInput</a> ()</td></tr>
<tr class="separator:a1fc46b06b36562f628e0d8f051c8b596"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c190e11c2ed38b078519efe7e4d06d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a7c190e11c2ed38b078519efe7e4d06d2">changeState</a> (<a class="el" href="class_state_machine.html">StateMachine</a> *level)</td></tr>
<tr class="separator:a7c190e11c2ed38b078519efe7e4d06d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:abf8e7512d69339437c10cfb24be80de2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_window.html">Window</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#abf8e7512d69339437c10cfb24be80de2">window</a></td></tr>
<tr class="separator:abf8e7512d69339437c10cfb24be80de2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a301c183e1c307488fd2da2b0a19f7199"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a301c183e1c307488fd2da2b0a19f7199">lastFrame</a></td></tr>
<tr class="separator:a301c183e1c307488fd2da2b0a19f7199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9415733a7e81365c8b5b8ee5b1519ffb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a9415733a7e81365c8b5b8ee5b1519ffb">running</a></td></tr>
<tr class="separator:a9415733a7e81365c8b5b8ee5b1519ffb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af40baffa9da33a7f8d4e480244d74e74"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_machine.html">StateMachine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#af40baffa9da33a7f8d4e480244d74e74">currentState</a></td></tr>
<tr class="separator:af40baffa9da33a7f8d4e480244d74e74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a19e25d1250c978750fadfe74cfde57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_manager.html">StateManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#a2a19e25d1250c978750fadfe74cfde57">manager</a></td></tr>
<tr class="separator:a2a19e25d1250c978750fadfe74cfde57"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:ae2dd6353df16267b2e9cbc845118721e"><td class="memItemLeft" align="right" valign="top">static const double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#ae2dd6353df16267b2e9cbc845118721e">FPS</a> = 60</td></tr>
<tr class="separator:ae2dd6353df16267b2e9cbc845118721e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4cbe1048a5e5f398271d0d998b45028"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gameloop.html#ae4cbe1048a5e5f398271d0d998b45028">timer</a> = 0</td></tr>
<tr class="separator:ae4cbe1048a5e5f398271d0d998b45028"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="_gameloop_8h.html">Gameloop.h</a></p>
<p>Created on: 2-dec.-2013 Author: Axel Class that handles the game loop </p>

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00023">23</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a18f9a1686565e206b40718ed787aeb97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gameloop::Gameloop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>constructor and destructor </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00020">20</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_gameloop_8h_source.html#l00045">currentState</a>, <a class="el" href="_state_manager_8cpp_source.html#l00022">StateManager::initialiseState()</a>, <a class="el" href="_gameloop_8h_source.html#l00037">lastFrame</a>, <a class="el" href="_gameloop_8h_source.html#l00046">manager</a>, <a class="el" href="_linked_list_8h_source.html#l00012">NULL</a>, <a class="el" href="_gameloop_8h_source.html#l00038">running</a>, and <a class="el" href="_gameloop_8h_source.html#l00034">window</a>.</p>

</div>
</div>
<a class="anchor" id="ac0aff9533f00b23557a7d7b348b95007"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Gameloop::~Gameloop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00033">33</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_gameloop_8h_source.html#l00046">manager</a>, and <a class="el" href="_gameloop_8h_source.html#l00034">window</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7c190e11c2ed38b078519efe7e4d06d2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Gameloop::changeState </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_state_machine.html">StateMachine</a> *&#160;</td>
          <td class="paramname"><em>level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>change the state </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00133">133</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_gameloop_8h_source.html#l00045">currentState</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00115">update()</a>.</p>

</div>
</div>
<a class="anchor" id="aaf57f38f17343877c7b4bd6a75ef3a9f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gameloop::gameLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>the core gameloop function </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00040">40</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_window_8cpp_source.html#l00030">Window::closeWindow()</a>, <a class="el" href="_gameloop_8h_source.html#l00041">FPS</a>, <a class="el" href="_gameloop_8cpp_source.html#l00091">getTime()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00125">handleInput()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00102">render()</a>, <a class="el" href="_gameloop_8h_source.html#l00038">running</a>, <a class="el" href="_gameloop_8h_source.html#l00042">timer</a>, <a class="el" href="_gameloop_8cpp_source.html#l00115">update()</a>, and <a class="el" href="_gameloop_8h_source.html#l00034">window</a>.</p>

<p>Referenced by <a class="el" href="gameframe_8cpp_source.html#l00016">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a0004bb5d123525c760e16535c424d50b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long Gameloop::getTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>get the time </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00091">91</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>.</p>

</div>
</div>
<a class="anchor" id="a1fc46b06b36562f628e0d8f051c8b596"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Gameloop::handleInput </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>handle input </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00125">125</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_gameloop_8h_source.html#l00045">currentState</a>, <a class="el" href="_window_8cpp_source.html#l00045">Window::getWindow()</a>, <a class="el" href="class_state_machine.html#a2f89dc242f85ca11d6eb400ffa6499bf">StateMachine::handleInput()</a>, <a class="el" href="_window_8cpp_source.html#l00040">Window::handleInput()</a>, and <a class="el" href="_gameloop_8h_source.html#l00034">window</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>.</p>

</div>
</div>
<a class="anchor" id="a6f65b70ec85e73fb4467e7eb34bc4849"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Gameloop::render </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>interpolation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>render the game </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00102">102</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_gameloop_8h_source.html#l00045">currentState</a>, <a class="el" href="class_state_machine.html#a0fabb1a7bbbda3158636cec08623a66e">StateMachine::renderGame()</a>, <a class="el" href="_window_8cpp_source.html#l00035">Window::swapBuffer()</a>, and <a class="el" href="_gameloop_8h_source.html#l00034">window</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>.</p>

</div>
</div>
<a class="anchor" id="a91d555830ff70f604077ec1600bf9a90"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Gameloop::stopLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>stop the loop </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00097">97</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_gameloop_8h_source.html#l00038">running</a>.</p>

</div>
</div>
<a class="anchor" id="a363757057c85482cecc4f72da4084dba"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Gameloop::update </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>update the game </p>

<p>Definition at line <a class="el" href="_gameloop_8cpp_source.html#l00115">115</a> of file <a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a>.</p>

<p>References <a class="el" href="_state_manager_8cpp_source.html#l00035">StateManager::callStates()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00133">changeState()</a>, <a class="el" href="_gameloop_8h_source.html#l00045">currentState</a>, <a class="el" href="class_state_machine.html#a39949e8a92cdca4854ac5394d6e0ba42">StateMachine::getKeyCode()</a>, <a class="el" href="_gameloop_8h_source.html#l00046">manager</a>, <a class="el" href="class_state_machine.html#aab3dd552f209ece70f8913a5fd4449db">StateMachine::stateChanger()</a>, <a class="el" href="_gameloop_8h_source.html#l00042">timer</a>, and <a class="el" href="class_state_machine.html#a6ed723b00e78eac46515b636c5a8481e">StateMachine::updateGame()</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="af40baffa9da33a7f8d4e480244d74e74"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_machine.html">StateMachine</a>* Gameloop::currentState</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>holding the currentstate and the manager </p>

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00045">45</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00133">changeState()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00020">Gameloop()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00125">handleInput()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00102">render()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00115">update()</a>.</p>

</div>
</div>
<a class="anchor" id="ae2dd6353df16267b2e9cbc845118721e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const double Gameloop::FPS = 60</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>the fps and timer </p>

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00041">41</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>.</p>

</div>
</div>
<a class="anchor" id="a301c183e1c307488fd2da2b0a19f7199"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long Gameloop::lastFrame</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>simple vars </p>

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00037">37</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00020">Gameloop()</a>.</p>

</div>
</div>
<a class="anchor" id="a2a19e25d1250c978750fadfe74cfde57"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_manager.html">StateManager</a>* Gameloop::manager</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00046">46</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00020">Gameloop()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00115">update()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00033">~Gameloop()</a>.</p>

</div>
</div>
<a class="anchor" id="a9415733a7e81365c8b5b8ee5b1519ffb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Gameloop::running</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00038">38</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00020">Gameloop()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00097">stopLoop()</a>.</p>

</div>
</div>
<a class="anchor" id="ae4cbe1048a5e5f398271d0d998b45028"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Gameloop::timer = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00042">42</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00115">update()</a>.</p>

</div>
</div>
<a class="anchor" id="abf8e7512d69339437c10cfb24be80de2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_window.html">Window</a>* Gameloop::window</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>the game window </p>

<p>Definition at line <a class="el" href="_gameloop_8h_source.html#l00034">34</a> of file <a class="el" href="_gameloop_8h_source.html">Gameloop.h</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00020">Gameloop()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00040">gameLoop()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00125">handleInput()</a>, <a class="el" href="_gameloop_8cpp_source.html#l00102">render()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00033">~Gameloop()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/CoreSystems/<a class="el" href="_gameloop_8h_source.html">Gameloop.h</a></li>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/CoreSystems/<a class="el" href="_gameloop_8cpp_source.html">Gameloop.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_gameloop.html">Gameloop</a></li>
    <li class="footer">Generated on Fri Dec 13 2013 19:38:40 for GameEngine by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
